/*
 * DBeaver - Universal Database Manager
 * Copyright (C) 2010-2025 DBeaver Corp and others
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.jkiss.dbeaver.model.websocket.event.session;

import org.jkiss.code.NotNull;
import org.jkiss.dbeaver.model.websocket.WSConstants;

public class WSSessionTaskQueryConfirmationRequestEvent extends WSAbstractSessionEvent {

    public static final String ID = "cb_session_task_query_confirmation_request";

    private final String taskId;
    private final String title;
    private final String message;
    private final String query;

    public WSSessionTaskQueryConfirmationRequestEvent(
        @NotNull String taskId,
        @NotNull String title,
        @NotNull String message,
        @NotNull String query
    ) {
        super(ID, WSConstants.TOPIC_SESSION_TASK);
        this.taskId = taskId;
        this.title = title;
        this.message = message;
        this.query = query;
    }

    public String getTaskId() {
        return taskId;
    }

    public String getTitle() {
        return title;
    }

    public String getMessage() {
        return message;
    }

    public String getQuery() {
        return query;
    }

}
